package scjp.threads.guide;

import static java.lang.System.out;

public class Count implements Runnable {

    @Override
    public void run() {

        for (int i = 0; i < 100; i++) {

            out.print(i + " ");

            if (i % 10 == 0) {

                out.println("Is multiple of 10");

                try {

                    Thread.sleep(1000);

                } catch (InterruptedException e) {
                    e.printStackTrace();
                }

            }


        }
    }

    public static void main(String args[]) {

        Runnable job = new Count();

        Thread worker = new Thread(job);

        worker.start();
    }
}
